class Navbar {
    init() {
        console.log('Navbar init')
    }
    getData() {
        console.log('Navbar getData')
    }
    render() {
        console.log('Navbar render')
    }
}
class List {
    init() {
        console.log('List init')
    }
    getData() {
        console.log('List getData')
    }
    render() {
        console.log('List render')
    }
}
class Creator {
    startBuild(builder) {
        builder.init()
        builder.getData()
        builder.render()
    }
}
const creator = new Creator()
creator.startBuild(new Navbar())
creator.startBuild(new List())